<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a=[123,2134,5,6,7,8];
        console.log(Array.isArray(a));//判断是不是数组


        var a = 23 ;
        console.log(Array.isArray(a));//如果判断不是数组则返回false，如果是数组则返回true
    </script>
</body>
</html>